package com.woniu.zsd.merchant.mapper;

import com.woniu.zsd.merchant.entity.Site;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
public interface SiteMapper extends BaseMapper<Site> {
    @Select("select site_name from site where id = #{siteId}")
    public String findSiteNameById(Integer siteId);

    List<Integer> recentSiteId(@Param("longitude") Double longitude,@Param("latitude") Double latitude);
}
